<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->

  <div class="Control-1 mechanism_dialogS closure" id="comcn small">
    <el-dialog
      width="1460px"
      title="浇筑令管理"
      
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="5%"
    >
      <div
        class="dialogBody common commonClassDialog moduleDialog"
        id="longLable"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <div style="overflow-y: auto; margin-bottom: 20px">
          <div class="baseTitle">浇筑令基本信息</div>
          <div style="height: 220px">
            <!--  :timestamp="formData.fFileurl"
              :fileList="fileList"
              @delteFile="delteFile($event, 0)" -->
            <publicForm
              ref="publicForm"
              lableWidth="120px"
              :formObj="formObj"
              :formData="formData"
              @selectChange="selectChange"
              @inputFocus="selectChange"
            >
            </publicForm>
          </div>

          <el-collapse
            v-model="activeNames"
            @change="changeCollapse"
          >
            <el-collapse-item name="0" v-show="handNum">
              <template slot="title">
                <div>
                  <img
                    style="vertical-align: middle"
                    src="@/assets/img/Supervision/com_flg.png"
                    alt=""
                  />
                  <span style="margin-left: 8px">试验室办理信息</span>
                </div>
              </template>
              <div style="height: 350px; margin-top: 3px; overflow-y: auto">
                <div style="height:150px">
                  <publicForm1
                  ref="publicForm1"
                  lableWidth="120px"
                  :formObj="laboratoryObj"
                  :formData="laboratoryData"
                  :selected="selected"
                  @selectChange="selectChange"
                  @inputFocus="selectChange"
                >
                </publicForm1>
                </div>
                
              <div style="height:200px">
                <!--  -->
                <table style="width: 100%"  v-if="laboratoryData.fSgphbnumber!=''">
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >材料种类</td>
                  <td class="MaterialBoxs" v-for="item in tableData" :key="item.fId">{{item.fMaterialtypename}}</td>
                  <td class="MaterialBox">单位体积量(Kg/m3)</td>
      
                </tr>
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >材料名称</td>
                  <td class="MaterialBoxs1" v-for="item in tableData" :key="item.fId"><a href="javascript:void(0);" :title="item.fMaterialname">{{item.fMaterialname}}</a></td>
                  <td class="MaterialBox1" style="width: 100%;"><el-input   :disabled="isEdit" ></el-input></td>


                </tr>
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >规格型号</td>
                  <td class="MaterialBoxs1" v-for="item in tableData" :key="item.fId">{{item.fSpecification}}</td>
                  <td class="MaterialBox1" style="width: 100%;"><el-input   :disabled="isEdit" ></el-input></td>

                 
                </tr>
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >含水率(%)</td>
                  <td class="MaterialBoxs1" v-for="item in tableData"    :key="item.fId">{{item.fHsrate}}</td>
                  <td class="MaterialBox1" style="width: 100%;"><el-input   :disabled="isEdit" ></el-input></td>
                  

                  
                 
                </tr>
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >含水量(Kg)</td>
                  <td class="MaterialBoxs1" v-for="item in tableData"    :key="item.fId">{{item.fHsnum}}</td>
                  <td class="MaterialBox1" style="width: 100%;"><el-input   :disabled="isEdit" ></el-input></td>
                  
                
                </tr>
                <tr class="typeMaterial" >
                  <td class="MaterialBoxname" >材料用量(Kg)</td>
                  <td class="MaterialBoxs1" v-for="item in tableData"    :key="item.fId">{{item.fClyl}}</td>
                  
                  <td class="MaterialBox1" colspan="3"><el-input :disabled="true" v-model="tableData[0].fDwtjl"></el-input></td>
                </tr>
              </table>
            </div>
              </div>
            </el-collapse-item>

            <el-collapse-item name="1" v-show="firstNum">
              <template slot="title">
                <div>
                  <img
                    style="vertical-align: middle"
                    src="@/assets/img/Supervision/com_flg.png"
                    alt=""
                  />
                  <span style="margin-left: 8px">拌合站办理信息</span>
                </div>
              </template>
              <div style="height: 160px; margin-top: 3px">
                <publicForm
                  ref="publicForm2"
                  lableWidth="120px"
                  :formObj="mixStationObj"
                  :formData="mixStationData"
                  @selectChange="selectChange"
                  @inputFocus="selectChange"
                >
                </publicForm>
              </div>
            </el-collapse-item>
          </el-collapse>
          <div style="height: 50px"></div>
        </div>
        <div class="newlyAdded_btn" v-if="btnShow">
          <el-button :disabled="isLock" type="primary" @click="yj_saveForm(1)"
            >保存</el-button
          >
          <el-button type="warning" @click="visible = false">关闭</el-button>
        </div>
      </div>
    </el-dialog>
    <custom-dialog
      @refreshList="refreshList"
      :currentRow="materialRow"
      v-if="materialShow"
      :dialogVisible="materialShow"
      @close1="materialDialog"
      @getWBS="getWBS"
    ></custom-dialog>
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
